package practice2;
/*
 * 对象就会有内存的差异
 */
public class String1 {
				public static void main(String[] args) {
					String a=new String("23");
					String b=new String("23");
					String a1="23";
					String a2="23";
					String c=new String(a1);
					String d=new String(a2);
					System.out.println((a==b));
					System.out.println((a1==a2));
					System.out.println((c.equals(a1)));
					System.out.println((a1==c));
					

					
				}
}
